package com.kongmou.springJms.jsm;

import org.springframework.jms.annotation.JmsListener;

//@Component
public class Consumer {
    @JmsListener(destination = "mytest.queue")
    public void receiveMessage(String message){
        System.out.println("Consumer收到的报文为:" + message);
    }

}
